/*
 * Created by JFormDesigner on Wed Jan 08 17:38:03 CST 2025
 */

package src.centerJframe;

import java.awt.*;
import javax.swing.*;

/**
 * @author 19624
 */
public class CenterJframe extends JFrame {
    public CenterJframe() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        button1 = new JButton();
        button3 = new JButton();
        button4 = new JButton();
        button2 = new JButton();
        label1 = new JLabel();
        label2 = new JLabel();
        label3 = new JLabel();

        //======== this ========
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- button1 ----
        button1.setText("\u4e3b\u9875\u9762");
        contentPane.add(button1);
        button1.setBounds(55, 10, 127, 45);

        //---- button3 ----
        button3.setText("\u641c\u7d22\u754c\u9762");
        contentPane.add(button3);
        button3.setBounds(510, 10, 127, 45);

        //---- button4 ----
        button4.setText("\u6570\u636e\u7edf\u8ba1");
        contentPane.add(button4);
        button4.setBounds(725, 10, 127, 45);

        //---- button2 ----
        button2.setText("\u6536\u85cf\u7ba1\u7406");
        contentPane.add(button2);
        button2.setBounds(275, 10, 127, 45);

        //---- label1 ----
        label1.setText("\u63a8\u8350\u52a8\u6f2b");
        contentPane.add(label1);
        label1.setBounds(150, 80, 65, 40);
        contentPane.add(label2);
        label2.setBounds(new Rectangle(new Point(20, 45), label2.getPreferredSize()));

        //---- label3 ----
        label3.setText("123");
        label3.setBackground(new Color(0xde868f));
        contentPane.add(label3);
        label3.setBounds(0, 0, 935, 77);

        contentPane.setPreferredSize(new Dimension(935, 500));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JButton button1;
    private JButton button3;
    private JButton button4;
    private JButton button2;
    private JLabel label1;
    private JLabel label2;
    private JLabel label3;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
